function selectnav1(){
	var b = $(".book-nav1");
	for(i=0;i<b.length;i++){
		b[i].classList.remove("bookit");
	}
	$("#book-nav1").addClass("bookit");
	
	$("#book-btn1").css("display","inline-block");
	$("#book-btn2").css("display","none");
	$(".book-grounp2").css("display","none");
	
}
function selectnav2(){
	var b = $(".book-nav1");
	for(i=0;i<b.length;i++){
		b[i].classList.remove("bookit");
	}
	$("#book-nav2").addClass("bookit");
	
	$("#book-btn1").css("display","none");
	$("#book-btn2").css("display","inline-block");
	$(".book-grounp2").css("display","block");
}
$("#book-nav1").click(function(){
	selectnav1();
});
$("#book-nav2").click(function(){
	selectnav2();
});

function checkit2(a){
	var b = $(".book-nav2");
	for(i=0;i<b.length;i++){
		b[i].classList.remove("bookit");
	}
	a.classList.add("bookit");
	var dd = $("#gengduo");
	if(a.innerHTML=="<span>全部</span>"){
		$(".quanbu").css("display","table-row");
		dd.text("加载更多航班了...");
	}
	else if(a.innerHTML=="<span>上海</span>"){
		$(".quanbu").css("display","none");
		$(".shanghai").css("display","table-row");
		dd.text("没有更多航班了...");
	}
	else if(a.innerHTML=="<span>广州</span>"){
		$(".quanbu").css("display","none");
		$(".guangzhou").css("display","table-row");
		dd.text("加载更多航班了...");
	}
	else if(a.innerHTML=="<span>深圳</span>"){
		$(".quanbu").css("display","none");
		$(".shenzheng").css("display","table-row");
		dd.text("没有更多航班了...");
	}
	else if(a.innerHTML=="<span>重庆</span>"){
		$(".quanbu").css("display","none");
		$(".chongqin").css("display","table-row");
		dd.text("加载更多航班了...");
	}
	else if(a.innerHTML=="<span>成都</span>"){
		$(".quanbu").css("display","none");
		$(".chengdu").css("display","table-row");
		dd.text("没有更多航班了...");
	}
	else if(a.innerHTML=="<span>杭州</span>"){
		$(".quanbu").css("display","none");
		$(".hangzhou").css("display","table-row");
		dd.text("没有更多航班了...");
	}
	else if(a.innerHTML=="<span>南京</span>"){
		$(".quanbu").css("display","none");
		$(".nanjing").css("display","table-row");
		dd.text("没有更多航班了...");
	}
}